﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LbangCMS.Areas.Admin.Models
{
    public class ContentModel
    {

        //编号
        public int ID { get; set; }

        public int CategoryId { get; set; }
        //名称
        public string Title { get; set; }
        //摘要
        public string Summary { get; set; }
        //内容
        public string Body { get; set; }
        //封面图片
        public string CoverSrc { get; set; }
        //是否有封面
        public bool IsHasCover { get; set; }
        //来源
        public string Source { get; set; }
        //状态 0：草稿;1:发布
        public bool Status { get; set; }
        //发布时间
        public string PublishTime { get; set; }
        //创建时间
        public string CreateTime { get; set; }

    }

    public class ContentListModel
    {
        public List<ContentModel> ContentList { get; set; }

        public int TotalPage { get; set; }

        public int PageIndex { get; set; }
    }

    public class ContentCategoryModel
    {
        public int ID { get; set; }
        public string Name { get; set; }
    }
}
